package com.example.hamilyjing.androiddemo.service.homepageService;

import android.content.Context;

import com.mobileClientKernel.android.serviceLayer.httpTransportService.service.JJTHttpTransportService;
import com.mobileClientKernel.android.serviceManager.service.IJJServiceCallBack;
import com.mobileClientKernel.android.serviceManager.servicefactory.JJServiceFactory;
import com.example.hamilyjing.androiddemo.service.homepageService.model.JJHomepageModel;
import com.example.hamilyjing.androiddemo.service.homepageService.network.JJHomepageRequest;

public class JJHomepageService extends JJTHttpTransportService {

    public static String JJHomepageServiceIdentityGetWeather = "JJHomepageService_getWeather";

    public static String serviceName() {
        return "com.example.hamilyjing.androiddemo.service.homepageService.JJHomepageService";
    }

    public void requestGetWeather(Context context, IJJServiceCallBack callBack) {
        org.json.JSONObject parameters = new org.json.JSONObject();
        JJHomepageRequest request = new JJHomepageRequest(JJHomepageServiceIdentityGetWeather, parameters, false, JJHomepageModel.class, false
                , false);

        request.setContext(context);
        request.setServiceCallBack(callBack);
        getFeatureSet().startRequest(context, request);
    }
}
